package com.yiibai.tutorial.javabasic.variable;

public class VariableExample1 {
	public static void main(String[] args) {
		// Declare a variable of type int(integer 32-bit)
		int firstNumber;

		// Assigning values to firstNumber
		firstNumber = 10;

		System.out.println("First Number =" + firstNumber);

		// Declare a 32-bit real number(float)
		// This number is assigned a value of 10.2
		float secondNumber = 10.2f;

		System.out.println("Second Number =" + secondNumber);

		// Declare a 64-bit real number
		// This number is assigned a value of 10.2
		// character d at the to tell with Java this is the type double.
		// Distinguished from a float.
		double thridNumber = 10.2d;

		System.out.println("Third Number =" + thridNumber);

		// Declare a character
		char ch = 'a';

		System.out.println("Char ch=" + ch);
	}
}
